<?php

$fd = fopen( "oracle.txt", "a+" );

$data = file_get_contents( "php://input" );
if ( empty( $data ) ) {
    $data = 'no data';
}

echo $data;

fwrite( $fd, "\n".date('h:i:s')."\n" );
fwrite( $fd, $data );

fclose( $fd );

?>